home *** CD-ROM | disk | FTP | other *** search
- The term TSR comes from the DOS function Terminate and Stay Resident.
- Normally, when a program terminates, DOS closes any files the program
- has opened, releases all memory that was allocated to it, and returns
- control to the parent program - usually COMMAND.COM, which will then
- give you a DOS command line.
-
- But, when DOS was designed, it's authors had already anticipated the
- need to add extensions and provided hooks for attaching system
- enhancements. The primary hook was a function you could call that
- would return you to the calling program (normally COMMAND.COM), whilst
- leaving your program intact - with all its memory available and files
- left open.
-
- Programmers soon learned that this function could be used to leave a
- program resident in such a way that it could be woken to perform a
- task at a later time. The first programmers to do this worked for
- Microsoft, and the first TSR was probably the PRINT utility that
- appeared from DOS 2.0 onwards.
-
- Unfortunately, although they provided mechanisms to support TSRs as we
- understand them today, they were undocumented and it took a lot of
- patient work by dedicated programmers to unfathom their workings. But
- nowadays all well-written commercial TSRs use them, and I would
- venture to say that you'll be able to rely on them continuing to work
- in future versions of DOS, as Microsoft is highly unlikely to make
- changes that would prevent programs such as Borland's Sidekick from
- working.
-
- To help you make use of these features in creating your own TSRs here
- is a comprehensive Turbo C library that you can link into your code,
- along with some example TSRs.
-
- Once you have installed the libraries on a hard disk or another floppy
- you will need to do one of the following from the DOS command line,
- depending on which version of Turbo C you are using:
-
-
- INSTALLATION
- ------------
-
- TURBO C v2.00 You must rename MAKEFILE.C20 as MAKEFILE like this:
-
- RENAME MAKEFILE.C20 MAKEFILE
-
- then type:
-
- MAKE
-
- The library you will be using is called TSR20.LIB.
-
-
- TURBO C ++ You must rename MAKEFILE.CPP as MAKEFILE like this:
-
- RENAME MAKEFILE.CPP MAKEFILE
-
- then type:
-
- MAKE
-
- The library you will be using is called TSRPP.LIB.
-
-
- For full details on how to use the TSR library please refer to the
- article inside the magazine.
-